/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.taobao.ibatiside.model.mapperv2.provider;

import java.util.ArrayList;
import java.util.Collection;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.edit.provider.ChangeNotifier;
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory;
import org.eclipse.emf.edit.provider.ComposedAdapterFactory;
import org.eclipse.emf.edit.provider.IChangeNotifier;
import org.eclipse.emf.edit.provider.IDisposable;
import org.eclipse.emf.edit.provider.IEditingDomainItemProvider;
import org.eclipse.emf.edit.provider.IItemLabelProvider;
import org.eclipse.emf.edit.provider.IItemPropertySource;
import org.eclipse.emf.edit.provider.INotifyChangedListener;
import org.eclipse.emf.edit.provider.IStructuredItemContentProvider;
import org.eclipse.emf.edit.provider.ITreeItemContentProvider;

import org.taobao.ibatiside.model.mapperv2.util.Mapperv2AdapterFactory;

/**
 * This is the factory that is used to provide the interfaces needed to support Viewers.
 * The adapters generated by this factory convert EMF adapter notifications into calls to {@link #fireNotifyChanged fireNotifyChanged}.
 * The adapters also support Eclipse property sheets.
 * Note that most of the adapters are shared among multiple instances.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public class Mapperv2ItemProviderAdapterFactory extends Mapperv2AdapterFactory implements ComposeableAdapterFactory, IChangeNotifier, IDisposable {
	/**
	 * This keeps track of the root adapter factory that delegates to this adapter factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ComposedAdapterFactory parentAdapterFactory;

	/**
	 * This is used to implement {@link org.eclipse.emf.edit.provider.IChangeNotifier}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IChangeNotifier changeNotifier = new ChangeNotifier();

	/**
	 * This keeps track of all the supported types checked by {@link #isFactoryForType isFactoryForType}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected Collection<Object> supportedTypes = new ArrayList<Object>();

	/**
	 * This constructs an instance.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public Mapperv2ItemProviderAdapterFactory() {
		supportedTypes.add(IEditingDomainItemProvider.class);
		supportedTypes.add(IStructuredItemContentProvider.class);
		supportedTypes.add(ITreeItemContentProvider.class);
		supportedTypes.add(IItemLabelProvider.class);
		supportedTypes.add(IItemPropertySource.class);
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.CacheModel} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected CacheModelItemProvider cacheModelItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.CacheModel}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createCacheModelAdapter() {
		if (cacheModelItemProvider == null) {
			cacheModelItemProvider = new CacheModelItemProvider(this);
		}

		return cacheModelItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Delete} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DeleteItemProvider deleteItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Delete}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDeleteAdapter() {
		if (deleteItemProvider == null) {
			deleteItemProvider = new DeleteItemProvider(this);
		}

		return deleteItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Discriminator} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DiscriminatorItemProvider discriminatorItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Discriminator}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDiscriminatorAdapter() {
		if (discriminatorItemProvider == null) {
			discriminatorItemProvider = new DiscriminatorItemProvider(this);
		}

		return discriminatorItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.DocumentRoot} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DocumentRootItemProvider documentRootItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.DocumentRoot}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDocumentRootAdapter() {
		if (documentRootItemProvider == null) {
			documentRootItemProvider = new DocumentRootItemProvider(this);
		}

		return documentRootItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Dynamic} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected DynamicItemProvider dynamicItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Dynamic}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createDynamicAdapter() {
		if (dynamicItemProvider == null) {
			dynamicItemProvider = new DynamicItemProvider(this);
		}

		return dynamicItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.FlushInterval} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FlushIntervalItemProvider flushIntervalItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.FlushInterval}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createFlushIntervalAdapter() {
		if (flushIntervalItemProvider == null) {
			flushIntervalItemProvider = new FlushIntervalItemProvider(this);
		}

		return flushIntervalItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.FlushOnExecute} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected FlushOnExecuteItemProvider flushOnExecuteItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.FlushOnExecute}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createFlushOnExecuteAdapter() {
		if (flushOnExecuteItemProvider == null) {
			flushOnExecuteItemProvider = new FlushOnExecuteItemProvider(this);
		}

		return flushOnExecuteItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.GeneralStatement} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected GeneralStatementItemProvider generalStatementItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.GeneralStatement}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createGeneralStatementAdapter() {
		if (generalStatementItemProvider == null) {
			generalStatementItemProvider = new GeneralStatementItemProvider(this);
		}

		return generalStatementItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Include} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IncludeItemProvider includeItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Include}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIncludeAdapter() {
		if (includeItemProvider == null) {
			includeItemProvider = new IncludeItemProvider(this);
		}

		return includeItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Insert} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected InsertItemProvider insertItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Insert}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createInsertAdapter() {
		if (insertItemProvider == null) {
			insertItemProvider = new InsertItemProvider(this);
		}

		return insertItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsEmpty} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsEmptyItemProvider isEmptyItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsEmpty}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsEmptyAdapter() {
		if (isEmptyItemProvider == null) {
			isEmptyItemProvider = new IsEmptyItemProvider(this);
		}

		return isEmptyItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsEqual} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsEqualItemProvider isEqualItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsEqual}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsEqualAdapter() {
		if (isEqualItemProvider == null) {
			isEqualItemProvider = new IsEqualItemProvider(this);
		}

		return isEqualItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsGreaterEqual} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsGreaterEqualItemProvider isGreaterEqualItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsGreaterEqual}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsGreaterEqualAdapter() {
		if (isGreaterEqualItemProvider == null) {
			isGreaterEqualItemProvider = new IsGreaterEqualItemProvider(this);
		}

		return isGreaterEqualItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsGreaterThan} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsGreaterThanItemProvider isGreaterThanItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsGreaterThan}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsGreaterThanAdapter() {
		if (isGreaterThanItemProvider == null) {
			isGreaterThanItemProvider = new IsGreaterThanItemProvider(this);
		}

		return isGreaterThanItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsLessEqual} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsLessEqualItemProvider isLessEqualItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsLessEqual}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsLessEqualAdapter() {
		if (isLessEqualItemProvider == null) {
			isLessEqualItemProvider = new IsLessEqualItemProvider(this);
		}

		return isLessEqualItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsLessThan} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsLessThanItemProvider isLessThanItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsLessThan}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsLessThanAdapter() {
		if (isLessThanItemProvider == null) {
			isLessThanItemProvider = new IsLessThanItemProvider(this);
		}

		return isLessThanItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsNotEmpty} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsNotEmptyItemProvider isNotEmptyItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsNotEmpty}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsNotEmptyAdapter() {
		if (isNotEmptyItemProvider == null) {
			isNotEmptyItemProvider = new IsNotEmptyItemProvider(this);
		}

		return isNotEmptyItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsNotEqual} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsNotEqualItemProvider isNotEqualItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsNotEqual}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsNotEqualAdapter() {
		if (isNotEqualItemProvider == null) {
			isNotEqualItemProvider = new IsNotEqualItemProvider(this);
		}

		return isNotEqualItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsNotNull} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsNotNullItemProvider isNotNullItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsNotNull}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsNotNullAdapter() {
		if (isNotNullItemProvider == null) {
			isNotNullItemProvider = new IsNotNullItemProvider(this);
		}

		return isNotNullItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsNotParameterPresent} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsNotParameterPresentItemProvider isNotParameterPresentItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsNotParameterPresent}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsNotParameterPresentAdapter() {
		if (isNotParameterPresentItemProvider == null) {
			isNotParameterPresentItemProvider = new IsNotParameterPresentItemProvider(this);
		}

		return isNotParameterPresentItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsNotPropertyAvailable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsNotPropertyAvailableItemProvider isNotPropertyAvailableItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsNotPropertyAvailable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsNotPropertyAvailableAdapter() {
		if (isNotPropertyAvailableItemProvider == null) {
			isNotPropertyAvailableItemProvider = new IsNotPropertyAvailableItemProvider(this);
		}

		return isNotPropertyAvailableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsNull} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsNullItemProvider isNullItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsNull}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsNullAdapter() {
		if (isNullItemProvider == null) {
			isNullItemProvider = new IsNullItemProvider(this);
		}

		return isNullItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsParameterPresent} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsParameterPresentItemProvider isParameterPresentItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsParameterPresent}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsParameterPresentAdapter() {
		if (isParameterPresentItemProvider == null) {
			isParameterPresentItemProvider = new IsParameterPresentItemProvider(this);
		}

		return isParameterPresentItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.IsPropertyAvailable} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IsPropertyAvailableItemProvider isPropertyAvailableItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.IsPropertyAvailable}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIsPropertyAvailableAdapter() {
		if (isPropertyAvailableItemProvider == null) {
			isPropertyAvailableItemProvider = new IsPropertyAvailableItemProvider(this);
		}

		return isPropertyAvailableItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Iterate} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected IterateItemProvider iterateItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Iterate}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createIterateAdapter() {
		if (iterateItemProvider == null) {
			iterateItemProvider = new IterateItemProvider(this);
		}

		return iterateItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Parameter} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ParameterItemProvider parameterItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Parameter}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createParameterAdapter() {
		if (parameterItemProvider == null) {
			parameterItemProvider = new ParameterItemProvider(this);
		}

		return parameterItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.ParameterMap} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ParameterMapItemProvider parameterMapItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.ParameterMap}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createParameterMapAdapter() {
		if (parameterMapItemProvider == null) {
			parameterMapItemProvider = new ParameterMapItemProvider(this);
		}

		return parameterMapItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Procedure} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ProcedureItemProvider procedureItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Procedure}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createProcedureAdapter() {
		if (procedureItemProvider == null) {
			procedureItemProvider = new ProcedureItemProvider(this);
		}

		return procedureItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Property} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected PropertyItemProvider propertyItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Property}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createPropertyAdapter() {
		if (propertyItemProvider == null) {
			propertyItemProvider = new PropertyItemProvider(this);
		}

		return propertyItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Result} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ResultItemProvider resultItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Result}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createResultAdapter() {
		if (resultItemProvider == null) {
			resultItemProvider = new ResultItemProvider(this);
		}

		return resultItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.ResultMap} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected ResultMapItemProvider resultMapItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.ResultMap}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createResultMapAdapter() {
		if (resultMapItemProvider == null) {
			resultMapItemProvider = new ResultMapItemProvider(this);
		}

		return resultMapItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Select} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SelectItemProvider selectItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Select}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSelectAdapter() {
		if (selectItemProvider == null) {
			selectItemProvider = new SelectItemProvider(this);
		}

		return selectItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.SelectKey} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SelectKeyItemProvider selectKeyItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.SelectKey}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSelectKeyAdapter() {
		if (selectKeyItemProvider == null) {
			selectKeyItemProvider = new SelectKeyItemProvider(this);
		}

		return selectKeyItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Sql} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SqlItemProvider sqlItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Sql}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSqlAdapter() {
		if (sqlItemProvider == null) {
			sqlItemProvider = new SqlItemProvider(this);
		}

		return sqlItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.SqlMap} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SqlMapItemProvider sqlMapItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.SqlMap}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSqlMapAdapter() {
		if (sqlMapItemProvider == null) {
			sqlMapItemProvider = new SqlMapItemProvider(this);
		}

		return sqlMapItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Statement} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected StatementItemProvider statementItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Statement}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createStatementAdapter() {
		if (statementItemProvider == null) {
			statementItemProvider = new StatementItemProvider(this);
		}

		return statementItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.SubMap} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected SubMapItemProvider subMapItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.SubMap}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createSubMapAdapter() {
		if (subMapItemProvider == null) {
			subMapItemProvider = new SubMapItemProvider(this);
		}

		return subMapItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.TypeAlias} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected TypeAliasItemProvider typeAliasItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.TypeAlias}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createTypeAliasAdapter() {
		if (typeAliasItemProvider == null) {
			typeAliasItemProvider = new TypeAliasItemProvider(this);
		}

		return typeAliasItemProvider;
	}

	/**
	 * This keeps track of the one adapter used for all {@link org.taobao.ibatiside.model.mapperv2.Update} instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	protected UpdateItemProvider updateItemProvider;

	/**
	 * This creates an adapter for a {@link org.taobao.ibatiside.model.mapperv2.Update}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter createUpdateAdapter() {
		if (updateItemProvider == null) {
			updateItemProvider = new UpdateItemProvider(this);
		}

		return updateItemProvider;
	}

	/**
	 * This returns the root adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public ComposeableAdapterFactory getRootAdapterFactory() {
		return parentAdapterFactory == null ? this : parentAdapterFactory.getRootAdapterFactory();
	}

	/**
	 * This sets the composed adapter factory that contains this factory.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void setParentAdapterFactory(ComposedAdapterFactory parentAdapterFactory) {
		this.parentAdapterFactory = parentAdapterFactory;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public boolean isFactoryForType(Object type) {
		return supportedTypes.contains(type) || super.isFactoryForType(type);
	}

	/**
	 * This implementation substitutes the factory itself as the key for the adapter.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Adapter adapt(Notifier notifier, Object type) {
		return super.adapt(notifier, this);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public Object adapt(Object object, Object type) {
		if (isFactoryForType(type)) {
			Object adapter = super.adapt(object, type);
			if (!(type instanceof Class<?>) || (((Class<?>)type).isInstance(adapter))) {
				return adapter;
			}
		}

		return null;
	}

	/**
	 * This adds a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void addListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.addListener(notifyChangedListener);
	}

	/**
	 * This removes a listener.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void removeListener(INotifyChangedListener notifyChangedListener) {
		changeNotifier.removeListener(notifyChangedListener);
	}

	/**
	 * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void fireNotifyChanged(Notification notification) {
		changeNotifier.fireNotifyChanged(notification);

		if (parentAdapterFactory != null) {
			parentAdapterFactory.fireNotifyChanged(notification);
		}
	}

	/**
	 * This disposes all of the item providers created by this factory. 
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void dispose() {
		if (cacheModelItemProvider != null) cacheModelItemProvider.dispose();
		if (deleteItemProvider != null) deleteItemProvider.dispose();
		if (discriminatorItemProvider != null) discriminatorItemProvider.dispose();
		if (documentRootItemProvider != null) documentRootItemProvider.dispose();
		if (dynamicItemProvider != null) dynamicItemProvider.dispose();
		if (flushIntervalItemProvider != null) flushIntervalItemProvider.dispose();
		if (flushOnExecuteItemProvider != null) flushOnExecuteItemProvider.dispose();
		if (generalStatementItemProvider != null) generalStatementItemProvider.dispose();
		if (includeItemProvider != null) includeItemProvider.dispose();
		if (insertItemProvider != null) insertItemProvider.dispose();
		if (isEmptyItemProvider != null) isEmptyItemProvider.dispose();
		if (isEqualItemProvider != null) isEqualItemProvider.dispose();
		if (isGreaterEqualItemProvider != null) isGreaterEqualItemProvider.dispose();
		if (isGreaterThanItemProvider != null) isGreaterThanItemProvider.dispose();
		if (isLessEqualItemProvider != null) isLessEqualItemProvider.dispose();
		if (isLessThanItemProvider != null) isLessThanItemProvider.dispose();
		if (isNotEmptyItemProvider != null) isNotEmptyItemProvider.dispose();
		if (isNotEqualItemProvider != null) isNotEqualItemProvider.dispose();
		if (isNotNullItemProvider != null) isNotNullItemProvider.dispose();
		if (isNotParameterPresentItemProvider != null) isNotParameterPresentItemProvider.dispose();
		if (isNotPropertyAvailableItemProvider != null) isNotPropertyAvailableItemProvider.dispose();
		if (isNullItemProvider != null) isNullItemProvider.dispose();
		if (isParameterPresentItemProvider != null) isParameterPresentItemProvider.dispose();
		if (isPropertyAvailableItemProvider != null) isPropertyAvailableItemProvider.dispose();
		if (iterateItemProvider != null) iterateItemProvider.dispose();
		if (parameterItemProvider != null) parameterItemProvider.dispose();
		if (parameterMapItemProvider != null) parameterMapItemProvider.dispose();
		if (procedureItemProvider != null) procedureItemProvider.dispose();
		if (propertyItemProvider != null) propertyItemProvider.dispose();
		if (resultItemProvider != null) resultItemProvider.dispose();
		if (resultMapItemProvider != null) resultMapItemProvider.dispose();
		if (selectItemProvider != null) selectItemProvider.dispose();
		if (selectKeyItemProvider != null) selectKeyItemProvider.dispose();
		if (sqlItemProvider != null) sqlItemProvider.dispose();
		if (sqlMapItemProvider != null) sqlMapItemProvider.dispose();
		if (statementItemProvider != null) statementItemProvider.dispose();
		if (subMapItemProvider != null) subMapItemProvider.dispose();
		if (typeAliasItemProvider != null) typeAliasItemProvider.dispose();
		if (updateItemProvider != null) updateItemProvider.dispose();
	}

}
